#pragma once

class animation
{
private:
	sf::Vector2f position;
	int frameCnt;
	int interval;
	bool looped;
	std::vector<sf::Sprite> frames;
	sf::Image spriteSheet;
	float fScale;
	sf::Color color;
	float rotation;
public:
	void load(std::string path, int spriteWidth, int spriteHeight, int frmCnt, int intrval,
		bool loop, float scale = 1.0f);
	bool draw(int time);
	bool draw(int time, sf::Vector2f dir);
	void SetPos(sf::Vector2f pos);
	void SetColor(sf::Color _color) { color = _color; }
	void SetRotation(float rot) { rotation = rot; }
};